﻿<Window x:Class="WPP_Console.OrderWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:WPP_Console"
        Title="Order Window" Height="565" Width="615" Icon="/images/package-icon.ico">
    <DockPanel Background="#FFF6871B">
        <DockPanel DockPanel.Dock="Top" Grid.Row="0" Name="OrderInfo">
            <Border BorderThickness="5" CornerRadius="5" BorderBrush="#FFFFCB7A" Margin="5">
                <Grid DockPanel.Dock="Left" Background="#FFFFCB7A">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Background="#FFFFCB7A">
                        <Label HorizontalAlignment="Center" Content="Customer Info"></Label>
                    </Grid>
                    <Label Grid.Column="0" Grid.Row="1" Content="Shipping Name:" />
                    <Label Grid.Column="1" Grid.Row="1" Name="shippingNameLbl" Width="100" HorizontalAlignment="Right" />
                    <Label Grid.Column="0" Grid.Row="2" Content="Billing Name:" />
                    <Label Grid.Column="1" Grid.Row="2" Name="billingNameLbl" Width="100" HorizontalAlignment="Left" Height="26" VerticalAlignment="Top"  />
                    <Label Grid.Column="0" Grid.Row="3" Content="Telephone:" />
                    <Label Grid.Column="1" Grid.Row="3" Name="telephoneLbl" Width="100" HorizontalAlignment="Left"  />
                </Grid>
            </Border>
            <Border BorderThickness="5" CornerRadius="5" BorderBrush="#FFFFCB7A" Margin="0,5,5,5">
                <Grid Background="#FFFFCB7A">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Background="#FFFFCB7A">
                        <Label HorizontalAlignment="Center" Content="Shipping Info"></Label>
                    </Grid>
                    <Label Grid.Column="0" Grid.Row="1" Content="Order Status:"></Label>
                    <Label Grid.Column="1" Grid.Row="1" Content="" HorizontalAlignment="Right" Name="orderStatusLbl"></Label>
                    <Label Grid.Column="0" Grid.Row="2" Content="Package Count:"></Label>
                    <Label Grid.Column="1" Grid.Row="2" Content="" HorizontalAlignment="Right" Name="packageCountLbl"></Label>
                </Grid>
            </Border>
        </DockPanel>
        <Border Margin="5,0,5,5" Background="#FFFFCB7A" BorderThickness="1" CornerRadius="5" BorderBrush="#FFFFCB7A" DockPanel.Dock="Bottom">
            <DockPanel>
                <WrapPanel DockPanel.Dock="Right" HorizontalAlignment="Right">
                    <Button Name="SaveOrder" Content="Save Changes" Margin="5,5,5,5" Click="SaveOrder_Click" />
                    <Button Name ="Cancel" Content="Cancel" Margin="0,5,5,5" Click="Cancel_Click" />
                </WrapPanel>
                <WrapPanel HorizontalAlignment="Left">
                    <Button Name="print"  ToolTip="Print Label" Margin="5,5,5,5" Click="print_Click" >
                        <Image Source="/WPP_Console;component/images/print-icon.png" Height="20" Width="30" RenderTransformOrigin="0.5,0.5">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleY="-1"/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                    </Button>
                    <CheckBox Name="CheckPrintAll" VerticalAlignment="Center" />
                    <Label Content="Print labels for all packages" VerticalAlignment="Center"/>
                </WrapPanel>
            </DockPanel>
        </Border>
        <DockPanel>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <DockPanel Grid.Row="0">
                    <Border DockPanel.Dock="Top" BorderThickness="5,0,5,0" CornerRadius="5,5,0,0" BorderBrush="#FFFFCB7A" Margin="5,0,5,0">
                        <WrapPanel Background="#FFFFCB7A">
                            <Label Content="Packages" Margin="0,0,50,0" />
                            <Label Content="Cancelled:" />
                            <Grid Margin="0,0,25,0" Background="Tomato"  VerticalAlignment="Center" Width="15" Height="15"></Grid>
                            <Label Content="Completed:" />
                            <Grid Margin="0,0,25,0" Background="LightGreen" VerticalAlignment="Center" Width="15" Height="15"></Grid>
                        </WrapPanel>
                    </Border>
                    <Border DockPanel.Dock="Bottom" BorderThickness="5,0,5,5" CornerRadius="0,0,5,5" BorderBrush="#FFFFCB7A" Margin="5,0,5,0">
                        <WrapPanel HorizontalAlignment="Stretch" Background="#FFFFCB7A">
                            <Button Name="markCompleteBtn" ToolTip="Mark Package Complete" Margin="0,0,5,0" Click="markCompleteBtn_Click" Width="37" Height="37">
                                <Image Source="/WPP_Console;component/images/package-complete-icon.png" >
                                </Image>
                            </Button>
                            <Button Name="markAllCompleteBtn" ToolTip="Mark All Packages Complete" Margin="0,0,5,0" Click="markAllCompleteBtn_Click" Width="37" Height="37">
                                <Image Source="/WPP_Console;component/images/all-package-complete-icon.png" />
                            </Button>
                        </WrapPanel>
                    </Border>
                    <Border BorderThickness="5" CornerRadius="0" BorderBrush="#FFFFCB7A" Margin="5,0,5,0">
                        <DataGrid Name="PackageGrid" Background="#FFFFCB7A" SelectionChanged="PackageGrid_SelectionChanged">
                            <DataGrid.Columns>
                                <DataGridTextColumn Width="*" Header="Package ID"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="Date Picked Up"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="Date Boxed"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="Package Status"></DataGridTextColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                    </Border>
                </DockPanel>
                <DockPanel Grid.Row="1" Margin="0,5,0,5">
                    <Border DockPanel.Dock="Top" BorderThickness="5,0,5,0" CornerRadius="5,5,0,0" BorderBrush="#FFFFCB7A" Margin="5,0,5,0">
                        <Label Background="#FFFFCB7A" Content="Items" />
                    </Border>
                    <Border BorderThickness="5" CornerRadius="0,0,5,5" BorderBrush="#FFFFCB7A" Margin="5,0,5,0">
                        <DataGrid Name="ItemGrid" Background="#FFFFCB7A">
                            <DataGrid.Columns>
                                <DataGridTextColumn Width="*" Header="POSSKU"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="Description"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="Customer Notes"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="Quantity"></DataGridTextColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                    </Border>
                </DockPanel>
            </Grid>
        </DockPanel>
    </DockPanel>
</Window>
